package com.hduong.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * 注册的是临时节点 保证的是 CP ： 一致性和容错性
 * Eureka 保证的是AP ： 可用性 和 容错性
 * Created by dudu on 2020/3/18.
 */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class, scanBasePackages = "com.hduong.springcloud")
@EnableDiscoveryClient
public class CloudProviderPayment8004 {
    public static void main(String[] args) {
        SpringApplication.run(CloudProviderPayment8004.class, args);
    }
}
